﻿using System;
using System.Windows.Forms;

namespace RabbitDownload.WebSite.Pixiv.Login
{
    public partial class LoginControl : UserControl
    {
        public LoginControl()
        {
            InitializeComponent();
            LoginHelper.InitUserInfo(textBox1, textBox2);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (checkBox1.Checked)
                LoginHelper.SaveUserInfo(textBox1.Text, textBox2.Text);
            new LoginHelper().StartLogin(textBox1.Text, textBox2.Text);
        }
    }
}